import Vue from 'vue'
import Router from 'vue-router'

const HomePage = () => import(/* webpackChunkName: "HomePage" */ '@/views/Home/HomePage')
const Page404 = () => import(/* webpackChunkName: "Page404" */ '@/views/Errors/404')
const OpenId = () => import(/* webpackChunkName: "OpenId" */ '@/views/Wechat/OpenId')
Vue.use(Router)

export default new Router({
    routes: [
        {
            path: '/',
            name: 'Home',
            redirect: '/homePage'
        },
        {
            path: '/homePage',
            name: 'homePage',
            component: HomePage
        },
        {
            path: '/openId',
            name: 'openId',
            component: OpenId
        },
        {
            path: '*',
            name: 'Notfound',
            component: Page404,
            meta: {
                fullScreen: true
            }
        }
    ]
})
